package com.cjh.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName order_commodity
 */
@TableName(value ="order_commodity")
@Data
public class OrderCommodity implements Serializable {
    /**
     * 订单商品表主键
     */
    @TableId(type = IdType.AUTO)
    private Integer orderCommodity;

    /**
     * 
     */
    private Integer orderId;

    /**
     * 商品详情外键
     */
    private Integer commodityDetailsId;

    /**
     * 商品数量
     */
    private Integer quantity;

    /**
     * 商品单价
     */
    private BigDecimal unitPrice;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}